// SearchTeacher
import request from '@/utils/request'
// 获得所有老师的信息 /api/user/getTeacher get
export const getTeacherList = (page, size) => request({ url: `/api/user/getTeacher?page=${page}&size=${size}`, method: 'get' })
// 搜索老师 /api/user/searchTeacher post
export const searchTeacher = (teacherName, page, size) => request({ url: `/api/user/searchTeacher?name=${teacherName}&page=${page}&size=${size}`, method: 'post' })
// 老师个人信息详情 /api/home/TeacherDetail
export const getTeacherInfo = (teacherId) => request({ url: `/api/home/TeacherDetail?teacher_id=${teacherId}` })
// 老师开设课程 /api/home/TeacherCourse get
export const getTeacherClassList = (teacherId) => request({ url: `/api/home/TeacherCourse?teacher_id=${teacherId}` })
